package com.ljj.service.impl;

import com.ljj.dataobject.ShopInfo;
import com.ljj.repository.ShopInfoRepository;
import com.ljj.service.IShopInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ShopInfoServiceImpl implements IShopInfoService{

    @Autowired
    private ShopInfoRepository shopInfoRepository;

    @Override
    public ShopInfo findOne(Integer id) {
        return shopInfoRepository.findOne(id);
    }

    @Override
    public void save(ShopInfo shopInfo) {
        shopInfoRepository.save(shopInfo);
    }
}
